-- GENERATED SPELL FOR [Shattered Hand Champion] --


function spell0_17671(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(32588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17671', 5298, 1)
end

function spell1_17671(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17671', 8325, 1)
end

function spell2_17671(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(32587,pUnit)
pUnit:RegisterEvent('Sorts_17671', 5338, 1)
end

function Sorts_17671(pUnit, Event)
local choix_sorts_17671 = math.random(0, 2)
if choix_sorts_17671 == 0 then
pUnit:RegisterEvent('spell0_17671', 1, 1)
end
if choix_sorts_17671 == 1 then
pUnit:RegisterEvent('spell1_17671', 1, 1)
end
if choix_sorts_17671 == 2 then
pUnit:RegisterEvent('spell2_17671', 1, 1)
end
end

function mob17671_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17671', math.random(1500, 3000), 1)
end

function mob17671_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17671_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17671_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17671, 1, 'mob17671_Action')
RegisterUnitEvent(17671, 2, 'mob17671_Leave')
RegisterUnitEvent(17671, 3, 'mob17671_Kill')
RegisterUnitEvent(17671, 4, 'mob17671_Die')
